package cn.kgc.ffzw.day16;

public class Game {
    private String name;
    private int attact;
    private int defense;
    private int blood;

    public Game(){}

    public Game(String name,int attact,int defense,int blood){
        this.name=name;
        this.attact=attact;
        this.defense=defense;
        this.blood=blood;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAttact() {
        return attact;
    }

    public void setAttact(int attact) {
        this.attact = attact;
    }

    public int getDefense() {
        return defense;
    }

    public void setDefense(int defense) {
        this.defense = defense;
    }

    public int getBlood() {
        return blood;
    }

    public void setBlood(int blood) {
        this.blood = blood;
    }
     public void att(){
         System.out.print(this.name+"发动攻击");
         System.out.print(",攻击力为："+this.attact);
         System.out.print(",防御值为："+this.defense);
         System.out.println(",生命值为："+this.blood);
     }
}

